<markdown>
# Disabled
</markdown>

<script lang="ts">
import { defineComponent, ref } from 'vue'

export default defineComponent({
  setup() {
    return {
      datetime: ref(null),
      date: ref(null),
      datetimerange: ref(null),
      daterange: ref(null),
      disabled: ref(true)
    }
  }
})
</script>

<template>
  <n-space vertical>
    <n-date-picker v-model:value="date" type="date" :disabled="disabled" />
    <n-date-picker
      v-model:value="datetime"
      type="datetime"
      :disabled="disabled"
    />
    <n-date-picker
      v-model:value="daterange"
      :disabled="disabled"
      type="daterange"
    />
    <n-date-picker
      v-model:value="datetimerange"
      :disabled="disabled"
      type="datetimerange"
    />
    <n-switch v-model:value="disabled" />
  </n-space>
</template>
